package com.ivo.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "PDM_O_DISP_TYPE")
public class DisplayType extends Model
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4969952317584859048L;
	//--------------------------------------------------------------------------------------------
	@Id
	@Column(name = "ID", length = 20)
	private String id;

	@Column(name = "NAME", length = 100)
	private String name;

	@Column(name = "NAME_EN", length = 100)
	private String name_En;

	@OneToOne(cascade = { CascadeType.MERGE })
	@JoinColumn(name = "DATA_TYPE_FK")
	private DataType dataType;

	@Column(name = "WIDTH")
	private Double width;

	@Column(name = "HEIGHT")
	private Double height;

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getName_En()
	{
		return name_En;
	}

	public void setName_En(String name_En)
	{
		this.name_En = name_En;
	}

	public DataType getDataType()
	{
		return dataType;
	}

	public void setDataType(DataType dataType)
	{
		this.dataType = dataType;
	}

	public Double getWidth()
	{
		return width;
	}

	public void setWidth(Double width)
	{
		this.width = width;
	}

	public Double getHeight()
	{
		return height;
	}

	public void setHeight(Double height)
	{
		this.height = height;
	}

}
